package com.hai.qtalk.service;

import com.hai.qtalk.base.BaseDAO;
import com.hai.qtalk.bean.Message;

/**
 * 信息处理的业务逻辑类
 * 对用户发送的信息数据进行增（记录）删查
 * @author xinhai
 *
 */
public class MessageService {

	private static BaseDAO<Message> mDao= new BaseDAO<Message>();
	
	public static void sendMessage(Message m){
		mDao.save(m);
	}
	
	public static void deleteMessage(Message m){
		mDao.delete(m);
	}
}
